import { PickType } from '@nestjs/swagger';
import { Post } from '../entities/post.entity';

export class CreatePostDto extends PickType(Post, [
  'title',
  'content',
  'image',
]) {}
export class UpdatePostDto extends PickType(Post, [
  'postId',
  'title',
  'content',
  'image'
]) {}
